package test;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;

public class test {
    public static void main(String[] args) throws Exception {
        FileOutputStream fos = new FileOutputStream("record.dat", true); // 追加模式
        BufferedOutputStream bos = new BufferedOutputStream(fos);
        bos.write('a');

        // 关闭流
        bos.close();
    }

}
